package com.dragon.graduation.project.mapper;

import com.dragon.graduation.project.entity.ProjectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 题目表 Mapper 接口
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:19:40
 */
@Mapper
public interface ProjectMapper extends BaseMapper<ProjectEntity> {

    List<ProjectEntity> selectByUserId(Integer id);

    @Select("select * from db_project where teacher_id = #{id}")
    List<ProjectEntity> selectByTeachserId(Integer id);
}
